package com.woniuxy.service;

import com.woniuxy.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户的登录
 */
@FeignClient("run-user")
public interface UseUserService {
    @PostMapping("/user/login")
    ResponseResult<Integer> userLogin(@RequestParam("account") String account, @RequestParam("pwd")String pwd);

    @GetMapping("/user/getUsersByAcc")
    ResponseResult getUsers(@RequestParam("account")String account);
}
